package genetic.q4;
import java.util.LinkedList;
import java.util.List;

import genetic.Genotype;
import genetic.q4.EternityPiece;

public class EternityGenotype implements Genotype{

	List<EternityPiece> gen;
	public EternityGenotype(List<EternityPiece> gen) {
		this.gen= gen;
	}

	@Override
	public int[] getIntString() {
		return null;
	}

	@Override
	public Genotype clone() {
		List<EternityPiece> newList = new LinkedList<EternityPiece>(gen);
		return new EternityGenotype(newList);
	}

	public double getSize() {
		return gen.size();
	}

	public EternityPiece getPiece(int i) {
		return gen.get(i);
	}

	public int indexOf(EternityPiece eternityPiece) {
		return gen.indexOf(eternityPiece);
	}

	@Override
	public String toString() {
		return getSize() + " - " + gen.toString();
	}

}
